{include file="public_head" /}
<!-- upload -->
<link href="__STATIC__/css/uploads.css" rel="stylesheet">
<!-- upload_arr -->
<link href="__STATIC__/plupload/plupload.css" rel="stylesheet">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- sku -->
<link href="__STATIC__/css/sku.css" rel="stylesheet" type="text/css">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<link rel="stylesheet" href="/pic/js/amazeui.min.css" />
<style>
    .middle-img {
        position: absolute;
        left: 259px;
        top: 0px;
        width: 40px;
    }

    .up-img {
        position: absolute;
        top: -40px;
        left: 261px;
        width: 40px;
    }

    .down-img {
        position: absolute;
        top: 40px;
        left: 257px;
        width: 40px;
    }

    .left-img {
        position: absolute;
        left: 218px;
        width: 40px;
    }

    .right-img {
        position: absolute;
        left: 300px;
        width: 40px;
    }
    @media screen and (max-width:450px) {
        .middle-img {
            position: absolute;
            left: 259px;
            top: 0px;
            width: 40px;
            display: none;
        }

        .up-img {
            position: absolute;
            top: -40px;
            left: 261px;
            width: 40px;
            display: none;
        }

        .down-img {
            position: absolute;
            top: 40px;
            left: 257px;
            width: 40px;
            display: none;
        }

        .left-img {
            position: absolute;
            left: 218px;
            width: 40px;
            display: none;
        }

        .right-img {
            position: absolute;
            left: 300px;
            width: 40px;
            display: none;
        }

        .rotate_jia{
            display: none;
        }.rotate_div{
             display: none;
         }.rotate_jian{
              display: none;
          }
    }
</style>
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">


<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <div class="title_left">

                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>


                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">会员查询：</label>
                                        <div class="input-group" style="float: left;margin: 0 10px;">

                                            <select name="salesman_id" id="status" class="select2_single" style="width: 300px;"
                                                    tabindex="-1">
                                                {volist name="$data" id="vo"}
                                                <option value="{$vo.username}:{$vo.real_name}" >{$vo.username}-{$vo.car_number}</option>
                                                {/volist}
                                            </select>
                                        </div>
                                        <a class="layui-btn layui-btn-primary btn btn-primary" id="transmit">确认</a>
                                    </div>

                            </div>
<pre class="layui-code" style="height: 180px; overflow: auto; display: none;">
<span class="run">//注意：parent 是 JS 自带的全局对象，可用于操作父页面
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引

//让层自适应iframe
$('#add').on('click', function(){
    $('body').append('插入很多酱油。插入很多酱油。插入很多酱油。插入很多酱油。插入很多酱油。插入很多酱油。插入很多酱油。');
    parent.layer.iframeAuto(index);
});
//在父层弹出一个层
$('#new').on('click', function(){
    parent.layer.msg('Hi, man', {shade: 0.3})
});
//给父页面传值
$('#transmit').on('click', function(){
    var myarr = $('[name="salesman_id"]').val().split(":");
    parent.$('[name="username"]').val(myarr[0]);
    <!--parent.$('[name="nickname"]').val(myarr[1]);-->
    parent.layer.tips('Look here', '#parentIframe', {time: 5000});
    parent.layer.close(index);
});
//关闭iframe
$('#closeIframe').click(function(){
    var val = $('#name').val();
    if(val === ''){
        parent.layer.msg('请填写标记');
        return;
    }
    parent.layer.msg('您将标记 [ ' +val + ' ] 成功传送给了父窗口');
    parent.layer.close(index);
});
</span>
</pre>

<div>
    <!--<button class="layui-btn layui-btn-primary" id="add">让层自适应iframe</button>-->
    <!--<button class="layui-btn layui-btn-primary" id="new">在父层弹出一个层</button>-->
    <!--<button class="layui-btn layui-btn-primary" id="transmit">给父页面传值</button>-->
    <!--<button class="layui-btn layui-btn-primary" id="closeIframe">关闭iframe</button>-->
</div>

                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

{include file="public_foot" /}
<!-- select -->

<script src="//cdn.bootcss.com/jquery/1.12.3/jquery.min.js"></script>
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<script>
    // select2

    new Function($('.run').text())()
    $(".select2_single").select2({
        placeholder: "请选择分类",
        allowClear: true
    });
    //var index = parent.layer.getFrameIndex(window.name);
    //parent.layer.iframeAuto(index);
</script>

<script>



</script>
</body>


</html>
